<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="util.Util"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		String email = request.getAttribute("email") + "";
		if (email.equals("null"))
			email = "";

		String email_err = request.getAttribute("email_err") + "";
		if (email_err.equals("null"))
			email_err = "";

		String tinh = request.getAttribute("tinh") + "";
		if (tinh.equals("null"))
			tinh = "";
	%>
	<center>
		REGISTRATION
		<form action="XuLyDangKy" method="GET" />
		<table>
			<tr>
				<td>Email:</td>
				<td><input type="email" name="email" value="<%=email%>" /><%=email_err%></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr>
				<td>Re_Password:</td>
				<td><input type="password" name="re_password" /></td>
			</tr>
			<tr>
				<td>Ngay sinh:</td>
				<td><input type="date" name="datetime" /></td>
			</tr>
			<tr>
				<td>Tinh:</td>
				<td><select name="tinh">
						<option value=""></option>
						<%
							for (String tinh1 : Util.getTinh()) {
						%>
						<option <%if (tinh.equals(tinh1)) {%> selected="selected" <%}%>
							value="<%=tinh1%>"><%=tinh1%></option>
						<%
							}
						%>
				</select></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="SUBMIT" /></td>
			</tr>
		</table>
		</form>
	</center>

</body>
</html>